
<div class="container">
	<div class="row">
		<div class="col-md-7 col-md-offset-2">
			<div class="row">
				<legend>Dodavanje kursa</legend>
				<a class="btn btn-primary" href="#/activity/{{activity.id}}">
					<span class="glyphicon glyphicon-chevron-left"></span> 
					Nazad
				</a>
				<button class="btn btn-success pull-right" ng-click="addActivity()">
					Sačuvaj
					<span class="glyphicon glyphicon-ok"></span> 
				</button>

			</div>
			<div class="row">
				<br/>
				<form action="" method="POST" role="form" class="form-group">
					<div class="form-group">
						<label for="acName">Ime kursa</label>
						<input type="text" class="form-control" ng-model="activityName" required />
					</div>

					<div class="form-group">
						<label for="acDesc">Opis kursa</label>
						<textarea class="form-control" name="acDesc" id="acDesc" rows="10" ng-model="activityDescription" required />
					</div>

					<div class="form-group col-md-6">
						<label for="acDate">Datum kursa</label>
						<input type="date" class="form-control" name="acDate" ng-model="activityDate" required />
					</div>
					<div class="col-md-6">
					
					<div class="form-group ">
						<label for="acCover">Omot slika kursa <small>(samo <code>http://link.do.slike</code>)</small></label>
						<input type="text" class="form-control" name="acCover"  ng-model="activityCover" required />
					</div>
					</div>
				</form>

			</div>
		</div>
	</div>
</div>















<!--


<a href="#/activity/{{activity.id}}"> Back </a>
<br/>
Name of activity: <input type="text" name="acName" ng-model="activityName" required/>
<br/>
Description
<br/>
<textarea name="acDesc" id="acDesc" cols="30" rows="10" ng-model="activityDescription" required></textarea>
<br/>
<br/>
Date: <input type="date" name="acDate" ng-model="activityDate" required/>
<br/>

-->



<!-- > Ovo ovde obrati paznju jer prima samo url sa http://blabla
Ovde sprečiti unos nečega što nije link ka sliku. Prvobitno je stajalo url za type
Ovo će vrv trebati da se piše JS funkcija
 </!-->

 <!--
Cover: <input type="text" name="acCover" ng-model="activityCover" required />
<br/>
<button ng-click="addActivity()">Add Activity!</button>
-->
{{messagePrint}}